<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>奇思妙想</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }
      .div1,
      .div2,
      .div3,
      .div4 {
        width: 200px;
        height: 200px;
      }

      .box1{
          overflow: hidden;
      }

      .box2{
          overflow: hidden;
      }
      .div1 {
        background-color: cadetblue;
        float: left;
      }
      .div2 {
        background-color: chartreuse;
        float: left;
      }
      .div3 {
        background-color: darkgoldenrod;
        /* clear: both; */
        float: left;
      }
      .div4 {
        background-color: darkorchid;
        float: left;
      }
    </style>
  </head>
  <body>
    <div class="box1">
      <div class="div1"></div>
      <div class="div2"></div>
    </div>

    <div class="box2">
      <div class="div3"></div>
      <div class="div4"></div>
    </div>
  </body>
</html>
